import request from '@/utils/request'

// 查询用户-收入支出明细列表
export function listCompanyfee(query) {
  return request({
    url: '/user/companyfee/list',
    method: 'get',
    params: query
  })
}

// 查询用户-收入支出明细详细
export function getCompanyfee(id) {
  return request({
    url: '/user/companyfee/' + id,
    method: 'get'
  })
}

// 新增用户-收入支出明细
export function addCompanyfee(data) {
  return request({
    url: '/user/companyfee',
    method: 'post',
    data: data
  })
}

// 修改用户-收入支出明细
export function updateCompanyfee(data) {
  return request({
    url: '/user/companyfee',
    method: 'put',
    data: data
  })
}

// 删除用户-收入支出明细
export function delCompanyfee(id) {
  return request({
    url: '/user/companyfee/' + id,
    method: 'delete'
  })
}

// 导出用户-收入支出明细
export function exportCompanyfee(query) {
  return request({
    url: '/user/companyfee/export',
    method: 'get',
    params: query
  })
}